package util;

import java.util.Random;

public class VerifiCode {

    private String C = "";

    public VerifiCode() {
    }

    public String getC() {
        String code = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";

        for (int i = 1; i <= 6; i++) {
            Random r = new Random();
            int rr = r.nextInt(36);
            this.C = this.C + code.charAt(rr);
        }
        return C;
    }

    public static void main(String[] args) {
        VerifiCode verifiCode = new VerifiCode();
        String s = verifiCode.getC();
        System.out.println(s);
    }
}
